from flask import Flask, url_for, redirect, render_template

app = Flask(__name__)


@app.route('/3')
def index_3():
    return redirect(url_for("static", filename="3-绑定事件.html"))


@app.route('/6')
def index_6():
    return redirect(url_for("static", filename="6-slot-插槽.html"))


@app.route('/7')
def index_7():
    return redirect(url_for("static", filename="7-if.html"))


@app.route('/8')
def index_8():
    return redirect(url_for("static", filename="8-for.html"))


@app.route('/9')
def index_9():
    return redirect(url_for("static", filename="9-双向绑定.html"))


@app.route('/10')
def index_10():
    return redirect(url_for("static", filename="10-template.html"))


@app.route('/11')
def index_11():
    return redirect(url_for("static", filename="11-自定义事件内容分发.html"))
    # return render_template("11-自定义事件内容分发.html")


if __name__ == '__main__':
    app.run()
